use std::vec;

fn main() {
    let mut v = vec![1, 2, 3];
    v.push(5);
    println!("{:?}", v);
    // let not_empty: Vec<i32> = &v[100];
    // let not_empty: Vec<i32> = v.get(100);
    match v.get(100) {
        Some(x) => println!("{:?}", x),
        None => println!("None"),
    }

    v.push(6);
    let first = &v[0];

    println!("The first element is: {}", first);
    for i in &v {
        println!("{}", i)
    }
    for i in &mut v {
        *i += 50
    }
    println!("{:?}", v);
    enum spreadsheetceel {
        Int(i32),
        Float(f64),
        Text(String),
    };
    let row = vec![
        spreadsheetceel::Int(3),
        spreadsheetceel::Text(String::from("blue")),
        spreadsheetceel::Float(10.12),
        spreadsheetceel::Float(10.42),
    ];
}
